import axios from '../../plugins/axios/index'
// import Vuex from '../../store/index'
// import router from '../../router'
export default {
  // 显示商品的详情信息
  show (id, that) {
    axios.request({
      url: `api/home/product/${id}`
    }).then((result) => {
      that.product = result.data
      that.next = result.category
      // 将商品的名字设置为最后的面包屑
    })
  }
}
